package com.xxxy.Blockhander;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.stereotype.Component;

@Component
public class MonitorBlockHandler {
    // 添加与原方法相同的参数，最后加上 BlockException
    public static String helloBlockHandler(BlockException e) {
        System.out.println("限流异常: " + e.toString());
        return "限流了哦，请稍后尝试";
    }
}
